<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改锅炉房值班记录')"/>
    <th:block th:include="include :: select2-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-ncGasDuty-edit" th:object="${ncGasDuty}">
        <input id="dutyId" name="dutyId" th:field="*{dutyId}" type="hidden">
        <!--<div class="form-group">
            <label class="col-sm-3 control-label">当班人</label>
            <div class="col-sm-8">

                <select id="nextDutyUser" class="form-control select2-multiple" name="nextDutyUser">
                    <option th:each="user:${nextDutyUsers}" th:value="${user.userId}" th:text="${user.userName}"
                            th:selected="${user.flag}" th:disabled="${user.status == '1'}"></option>
                </select>
                &lt;!&ndash;					<input id="nextDutyUser" name="nextDutyUser" th:field="*{nextDutyUser}" class="form-control" type="text">&ndash;&gt;
            </div>
        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">值班人</label>
            <div class="col-sm-8">

                <select id="onDutyUser" class="form-control select2-multiple" name="onDutyUser">
                    <option th:each="user:${onDutyUsers}" th:value="${user.userId}" th:text="${user.userName}"
                            th:selected="${user.flag}" th:disabled="${user.status == '1'}"></option>
                </select>
                <!--					<input id="onDutyUser" name="onDutyUser" th:field="*{onDutyUser}" class="form-control" type="text">-->
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">记录时间</label>
            <div class="col-sm-8">
                <input id="createTime" data-format="yyyy-MM-dd HH:mm:ss" data-type="datetime" required readonly="readonly" name="createTime"
                       th:value="*{#dates.format(createTime, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text"
                       th:class="time-input">

            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">夜间最低温度(℃)</label>
            <div class="col-sm-8">
                <!--<select id="dutyNum" class="form-control select2-multiple" name="dutyNum"
                        th:with="type=${@dict.getType('dutyNum')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
                            th:field="*{dutyNum}"></option>
                </select>-->
                <input id="dutyNum"  name="dutyNum" th:field="*{dutyNum}" class="form-control" type="number" step="1">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">锅炉号</label>
            <div class="col-sm-8">
                <select name="boilerNum" class="form-control m-b" th:with="type=${@dict.getType('boilerNum')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
                            th:field="*{boilerNum}"></option>

                </select>
                <!--					<input id="boilerNum" name="boilerNum" th:field="*{boilerNum}" class="form-control" type="text">-->
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">气压阈值</label>
            <div class="col-sm-8">
                <input id="qyfz" name="qyfz" th:field="*{qyfz}" class="form-control" type="number" step="2">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">今日用气量</label>
            <div class="col-sm-8">
                <input id="yql" name="yql" th:field="*{yql}" class="form-control" type="number" step="2">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">锅炉运行压力(Mpa)</label>
            <div class="col-sm-8">
                <input id="boilerPressure" name="boilerPressure" th:field="*{boilerPressure}" class="form-control"
                       type="number" step="2">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">锅炉运行温度(℃)</label>
            <div class="col-sm-8">
                <input id="boilerTemperature" name="boilerTemperature" th:field="*{boilerTemperature}"
                       class="form-control" type="number" step="1">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">循环泵1运行压力(Mpa)</label>
            <div class="col-sm-8">
                <input id="pressure1" name="pressure1" th:field="*{pressure1}" class="form-control" type="number" step="2">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">循环泵2运行压力(Mpa)</label>
            <div class="col-sm-8">
                <input id="pressure2" name="pressure2" th:field="*{pressure2}" class="form-control" type="number" step="2">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">循环泵3运行压力(Mpa)</label>
            <div class="col-sm-8">
                <input id="pressure3" name="pressure3" th:field="*{pressure3}" class="form-control" type="number" step="2">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">燃烧器运行情况 </label>
            <div class="col-sm-8">
                <select name="burner" class="form-control m-b" th:with="type=${@dict.getType('burner')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
                            th:field="*{burner}"></option>

                </select>
                <!--					<input id="burner" name="burner" th:field="*{burner}" class="form-control" type="text">-->
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">系统补水情况</label>
            <div class="col-sm-8">
                <select name="water" class="form-control m-b" th:with="type=${@dict.getType('water')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
                            th:field="*{water}"></option>

                </select>
                <!--					<input id="water" name="water" th:field="*{water}" class="form-control" type="text">-->
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">环境卫生情况</label>
            <div class="col-sm-8">
                <select name="health" class="form-control m-b" th:with="type=${@dict.getType('health')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
                            th:field="*{health}"></option>

                </select>
                <!--					<input id="health" name="health" th:field="*{health}" class="form-control" type="text">-->
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">排污情况 </label>
            <div class="col-sm-8">
                <select name="blowOff" class="form-control m-b" th:with="type=${@dict.getType('blowOff')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
                            th:field="*{blowOff}"></option>

                </select>
                <!--					<input id="blowOff" name="blowOff" th:field="*{blowOff}" class="form-control" type="text">-->
            </div>
        </div>
        <!--<div class="form-group">
            <label class="col-sm-3 control-label">查表人员</label>
            <div class="col-sm-8">
                <input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
            </div>
        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">备注</label>
            <div class="col-sm-8">
                <textarea id="remark" name="remark" th:field="*{remark}" rows="4" class="form-control"
                          type="text"></textarea>
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<th:block th:include="include :: select2-js"/>
<script type="text/javascript">
    var prefix = ctx + "system/ncGasDuty";
    $("#form-ncGasDuty-edit").validate({
        rules: {
            xxxx: {
                required: true,
            },
        },
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-ncGasDuty-edit').serialize());
        }
    }

</script>


</body>
</html>
